package com.ss.cfg;

/**
 * the second Parameter of visit method
 * @author WangJie
 *
 */
public class CFGTransfer {

	private CFG controlFlowGraph;
	
	private Node currentNode;
	
	private ControlStack breakStack;
	
	private ControlStack continueStack;
	
	private boolean isSwitch;

	public CFGTransfer() {
		super();
		this.breakStack = new ControlStack();
		this.continueStack = new ControlStack();
		this.controlFlowGraph = new CFG();
	}

	public CFG getControlFlowGraph() {
		return controlFlowGraph;
	}

	public void setControlFlowGraph(CFG controlFlowGraph) {
		this.controlFlowGraph = controlFlowGraph;
	}

	public Node getCurrentNode() {
		return currentNode;
	}

	public void setCurrentNode(Node currentNode) {
		this.currentNode = currentNode;
	}

	public ControlStack getBreakStack() {
		return breakStack;
	}

	public void setBreakStack(ControlStack breakStack) {
		this.breakStack = breakStack;
	}

	public ControlStack getContinueStack() {
		return continueStack;
	}

	public void setContinueStack(ControlStack continueStack) {
		this.continueStack = continueStack;
	}

	public boolean isSwitch() {
		return isSwitch;
	}

	public void setSwitch(boolean isSwitch) {
		this.isSwitch = isSwitch;
	}

//	public ControlStack getControlStack() {
//		return controlStack;
//	}
//
//	public void setControlStack(ControlStack controlStack) {
//		this.controlStack = controlStack;
//	}
	
}
